package com.struct.graph.game.body
{
	import com.collection.AbilityCollection;
	import com.collection.DataWorkerCollection;
	
	import flash.display.BitmapData;
	
	public class BulletBody extends BaseBody
	{
//		protected var skill_move:int;//技能移动力属性
		public var player:PlayerBody;
		
		public var init:Boolean;
		public function BulletBody(player:PlayerBody, radius:int, width:Number, height:Number)
		{
			super(radius, 1, 0, 0, 0, new BitmapData(radius * 2, radius * 2), width, height, 0.02, false, true);
			this.player = player;
		}
		
		public function setting(attack:int, quality:Number, skill_move:int, skill:uint):void{
			_collide.attack = attack;
			_collide.quality = quality;
			_collide.move = skill_move;
			bitMap.bitmapData = DataWorkerCollection.zip.data["b" + skill];
			bitMap.x = -(width / 2);
			bitMap.y = -(height / 2);
			init = false;
		}
	}
}